package com.test.PizzaFactory;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/05/24 10:32
 **/
public abstract class PizzaStore {


    public Pizza orderPizza(String type) {
        Pizza pizza;
        pizza = createPizza(type);
        System.out.println(pizza);
        return pizza;
    }

    abstract Pizza createPizza(String type);

    public static void main(String[] args) {
        NYStylePizzaStore nyStylePizzaStore = new NYStylePizzaStore();
        Pizza cheese = nyStylePizzaStore.createPizza("cheese");
        System.out.println(cheese);
    }
}
